import request from '@/utils/request'

const orderApi = {
  GetOrderListUrl: '/admin/orderlist',
  FinishOrderUrl: '/hospital/orderwc',
  //获取医疗订单列表
  GetTherapyOrderListUrl: '/admin/ylorderlist',
  //获取消费详情
  GetExpenditureInfoUrl: '/hospital/xiaofeiinfo',
}

export function GetExpenditureInfo(parameter) {
  return request({
    url: orderApi.GetExpenditureInfoUrl,
    method: 'post',
    data: parameter
  })
}

export function GetTherapyOrderList(parameter) {
  return request({
    url: orderApi.GetTherapyOrderListUrl,
    method: 'post',
    data: parameter
  })
}

export function GetOrderList(parameter) {
  return request({
    url: orderApi.GetOrderListUrl,
    method: 'post',
    data: parameter
  })
}

export function FinishOrder(parameter) {
  return request({
    url: orderApi.FinishOrderUrl,
    method: 'post',
    data: parameter
  })
}


export function zhongyaoOrder(parameter) {
  return request({
    url: '/admin/prescriptions',
    method: 'post',
    data: parameter
  })
}

export function zhongyaoOrderDetail(parameter) {
  return request({
    url: '/admin/prescriptioninfo',
    method: 'post',
    data: parameter
  })
}

export function xiyaoOrder(parameter) {
  return request({
    url: '/admin/prescriptionxys',
    method: 'post',
    data: parameter
  })
}

export function xiyaoOrderDetail(parameter) {
  return request({
    url: '/admin/prescriptionxyinfo',
    method: 'post',
    data: parameter
  })
}